PrintBarcodeProperties

data class PrintBarcodeProperties(val canvasHeight: Int? = null, val barcodeWidth: Int? = null, val barcodeHeight: Int? = null, val startDrawPositionX: Int? = null, val startDrawPositionY: Int? = null) : Parcelable

A data class that holds the layout properties for the barcode.

Constructors

Link copied to clipboard
constructor(canvasHeight: Int? = null, barcodeWidth: Int? = null, barcodeHeight: Int? = null, startDrawPositionX: Int? = null, startDrawPositionY: Int? = null)

Properties

Link copied to clipboard
val barcodeHeight: Int? = null

Refers to the barcode height in pixels. If null, a default height will be taken.

Link copied to clipboard
val barcodeWidth: Int? = null

Refers to the barcode width in pixels. If null, a default width will be taken.

Link copied to clipboard
val canvasHeight: Int? = null

Refers to the canvas height in pixels. The canvas size is paper width x canvas height. If null, a default height will be taken.

Link copied to clipboard
val startDrawPositionX: Int? = null

Start draw position top left of canvas horizontal to the right. If null, a default start draw position x will be taken.

Link copied to clipboard
val startDrawPositionY: Int? = null

Start draw position top left of canvas vertical downwards. If null, a default start draw position y will be taken.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)